package com.evenmo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import com.evenmo.pojo.User;
import com.evenmo.pojo.User3;

@Controller
public class PageController {
@RequestMapping(value="/registerForm.html")
	public String toPage(User user) {
//	User user=new User();
	user.setAge(11);
	user.setPassword("123456");
	user.setUsername("testname");
//	model.addAttribute("command", user);
		return "registerForm";
	}

@RequestMapping(value="/format.html")
public String toPage2(User user) {

	return "format";
}

@RequestMapping(value="/vialidator.html")
public String toPage3(User3 user3) {

	return "vialidator";
}
}
